<?  layout("../layout/default.html") { ?>
<div class="admin-panel">
	<div class="panel">
		<form method="post" action="${root}/MessageType/deleteAll">
			<div class="panel-head">
				<h3 class="float-left">
					<b>消息列表</b>
				</h3>
				<div class="toolbar">

					<button class="button  button-little bg-red icon-trash-o"
						onclick="{if(confirm('删除后数据不可恢复，确定执行?')){return true;}return false;}">
						批量删除</button>
				</div>
				<div class="clearfix"></div>
			</div>
			<table class="table table-hover table-condensed">
				<tr>
					<? for(field in @fields){?>
					<th>${field}</th>
					<? } ?>

				</tr>

				<? for(datas in @page.getList()){?>

				<tr>
					<? for(data in @datas.getColumnValues()){?>

					<td>${data}</td>

					<?  } ?>


				</tr>
				<?  } ?>
			</table>
		</form>
		<div class="panel-foot text-center">
			<?  includeFileTemplate("/common/paginate.html",{uri : '', page : page}){}?>
		</div>
	</div>
</div>
<?  } ?>